package top.fyr.controller;

import com.weibo.api.motan.config.springsupport.annotation.MotanReferer;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import top.fyr.service.FooService;

/**
 * @author 付阳荣
 * @date 2018/3/15
 */
@RestController
public class HelloController {

	@MotanReferer(basicReferer = "motantestClientBasicConfig", group = "testgroup", directUrl = "127.0.0.1:8002")
	FooService service;

	@RequestMapping("/")
	@ResponseBody
	public String home() {
		String result = service.hello("test");
		return result;
	}
}
